<?php

/**
 * Created by PhpStorm.
 * User: L
 * Date: 2018/12/03
 * Time: 11:41
 */
namespace App\Http\Controllers;

use App\Models\Comment;
use Illuminate\Http\Request;

class CommentController extends Controllers
{
	public $model = null;
	public function __construct()
	{
		$this->model = new Comment();
	}
	
	public function index(Request $request)
	{
		return $this->model->lst($request);
	}
	
	public function create(Request $request)
	{
		return $this->model->createComment($request);
	}
}